package com.zb.mapper;


import java.util.List;
import java.util.Map;

import com.zb.entity.Dictionary;


public interface DictionaryMapper{
	
	//字典记录数
	public int count();
	//显示字典信息
	public List<Dictionary> findDictionary(Map<String, Object> map);
	//添加字典
	public int saveDictionary(Dictionary dictionary);
	//删除字典信息
	public int deleteDictionary(int id);
	//根据id获得唯一数据
	public Dictionary getDictionaryById(int id);
	//修改字典信息
	public int updateDictionary(Dictionary dictionary);
	
	
	//获取字典信息的子集
	public List<Dictionary> findDictionaryChild(int id);
	//添加字典子数据
	public int saveDictionaryChild(Dictionary dictionary);
	
	
}